import request from '@/utils/request'

// 查询转换关系表列表
export function listTransformrules(query) {
  return request({
    url: '/wms/transformrules/list',
    method: 'get',
    params: query
  })
}

// 查询转换关系表详细
export function getTransformrules(ruleId) {
  return request({
    url: '/wms/transformrules/' + ruleId,
    method: 'get'
  })
}

// 新增转换关系表
export function addTransformrules(data) {
  return request({
    url: '/wms/transformrules',
    method: 'post',
    data: data
  })
}

// 修改转换关系表
export function updateTransformrules(data) {
  return request({
    url: '/wms/transformrules',
    method: 'put',
    data: data
  })
}

// 删除转换关系表
export function delTransformrules(ruleId) {
  return request({
    url: '/wms/transformrules/' + ruleId,
    method: 'delete'
  })
}
